//
//  DisclosureDetailController.m
//  UIViewSamples
//
//  Created by Sang-don Lee on 11. 11. 7..
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "DisclosureDetailController.h"

@implementation DisclosureDetailController

@synthesize message, label;

#pragma mark - lifecycle

- (void)viewWillAppear:(BOOL)animated
{
    label.text = message;
    label.lineBreakMode = UILineBreakModeWordWrap;
    [super viewWillAppear:animated];
}

- (void)viewDidLoad
{
    
    label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
    
    [self.view addSubview:label];
}

- (void)viewDidUnload
{
    self.label = nil;
    self.message = nil;
    [super viewDidUnload];
}

- (void)dealloc
{
    [label release];
    [message release];
    [super dealloc];
}

@end
